package com.xingu.xg.dal.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.xingu.xg.dal.domain.Category1;
import com.xingu.xg.mapper.Category1Mapper;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.LinkedList;
import java.util.List;

/**
 * 多叉树结构
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Category1TreeNode  {

    @ApiModelProperty("id")
    Long id;
    @ApiModelProperty("父级id")
    Long pid;
    @ApiModelProperty("第几层")
    Integer level;
    @ApiModelProperty("分类名称")
    String name;
    @ApiModelProperty("数量")
    Long number;
    @ApiModelProperty("备注信息")
    String remark;
    @ApiModelProperty("规格id")
    Long unitId;
    @ApiModelProperty("规格内容")
    String unit;
    @ApiModelProperty("供应商价格")
    BigDecimal supplierPrice;
    @ApiModelProperty("安装几个")
    BigDecimal setupPrice;
    @ApiModelProperty("总价")
    BigDecimal totalPrice;

    @ApiModelProperty("下级的分类信息")
    List<Category1TreeNode> children = new LinkedList<>();
}
